<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends CI_Controller {
 	public function __construct(){
 		parent::__construct();
 		//连接数据库
 		$this->db = $this->load->database ( "default", TRUE );
 		//读取dilicms的配置属性
 		$this->siteData = $this->db->get($this->db->dbprefix('site_settings'))->row_array();
 	}
 	public function index()
 	{
 		//$data["info1"]=$this->info(); //将二维数组赋值给 data数组 的 info 下标变量
 		$this->load->view('login');//下面是判断的
 	}
 	public function turnToLogincheck(){
 		$this->load->view('loginCheck');
 	}
 }
